home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm6_3_1
- Caption = "POPULATION GROWTH"
- ClientHeight = 2055
- ClientLeft = 1575
- ClientTop = 1635
- ClientWidth = 3270
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2055
- ScaleWidth = 3270
- Begin VB.PictureBox picTable
- Height = 1215
- Left = 600
- ScaleHeight = 1155
- ScaleWidth = 1995
- TabIndex = 1
- Top = 720
- Width = 2055
- End
- Begin VB.CommandButton cmdDisplay
- Caption = "Display Population"
- Height = 495
- Left = 600
- TabIndex = 0
- Top = 120
- Width = 2055
- End
- Attribute VB_Name = "frm6_3_1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDisplay_Click()
- Dim pop As Single, yr As Integer
- 'Display population from 1998 to 2002
- picTable.Cls
- pop = 300000
- For yr = 1998 To 2002
- picTable.Print yr, FormatNumber(pop, 0)
- pop = pop + 0.03 * pop
- Next yr
- End Sub
-